//
//  sanPersonaLController.m
//  3FSports
//
//  Created by mac on 16/11/16.
//  Copyright © 2016年 sanAiFuSport.com. All rights reserved.
//

#import "sanPersonaLController.h"
#import "sanSettingController.h"
#import "Masonry.h"
#define kHeaderHeight 123
@interface sanPersonaLController ()

@end

@implementation sanPersonaLController

#pragma mark-- 实现跳转
- (void)gotoShe
{
    sanSettingController *vc = [[sanSettingController alloc]init];
    
    [self.navigationController pushViewController:vc animated:YES];
}
#pragma MARK-- 搭建界面
- (void)setupUI
{
    self.title = @"个人中心";
    self.view.backgroundColor = [UIColor yellowColor];
    UIBarButtonItem *addItem = [[UIBarButtonItem alloc]initWithImage:[UIImage imageNamed:@"tab_me_nor"] style:UIBarButtonItemStylePlain target:self action:@selector(gotoShe)];
    self.navigationItem.rightBarButtonItem = addItem;
    
    //顶部视图
    UIView *headerV = [[UIView alloc]init];
    headerV.backgroundColor = [UIColor orangeColor];
    
    [self.view addSubview:headerV];
    
    [headerV mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.right.top.equalTo(self.view);
        make.height.mas_equalTo(kHeaderHeight);
    }];
    
    
}
@end
